package com.wskh.eduOrder.client.impl;

import com.wskh.eduOrder.entity.CourseWebVo;
import com.wskh.eduOrder.client.EduClient;
import com.wskh.eduOrder.mapper.TOrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class EduClientImpl implements EduClient {

    @Autowired
    TOrderMapper tOrderMapper;

    @Override
    public CourseWebVo getCourseInfoDto(String courseId) {
        System.out.println("EduClient服务降级了");
        CourseWebVo courseInfoDto = tOrderMapper.getCourseInfoDto(courseId);

        return courseInfoDto;
    }
}
